<template>
    <confirm-button class="ui red label" @confirm="()=>{this.$emit('confirm')}" :title='`确定要删除 "${name}" 吗？`'>
        <i class="trash alternate icon" :class="$slots.default ? 'mr-1': 'mx-0'"></i>
        <slot></slot>
    </confirm-button>
</template>

<script>
export default {
    name: 'delete-button',
    props: ['name']
}
</script>

